
Page({
  data: {
   userinfo:{},
   collectNum:0
  },
  onShow(){
    const userinfo = wx.getStorageSync('userinfo')
    const collect = wx.getStorageSync('collect') || []
    this.setData({userinfo,collectNum:collect.length})
  }

})